package com.bjqg.bjqg01.bjqg.activity.seekprice.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;
import com.bjqg.bjqg01.bjqg.activity.BaseActivity;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by bjqg01 on 2018/8/23.
 */

public class SeekPrice extends BaseActivity {


    @BindView(R.id.back)
    ImageView back;
    @BindView(R.id.tv_top_title_drawer)
    TextView tvTopTitleDrawer;
    @BindView(R.id.tv_search_top_drawer)
    TextView tvSearchTopDrawer;
    @BindView(R.id.seek_rl_cljc)
    AutoRelativeLayout seekRlCljc;
    @BindView(R.id.seek_rl_gcch)
    AutoRelativeLayout seekRlGcch;
    @BindView(R.id.seek_rl_cprz)
    AutoRelativeLayout seekRlCprz;
    @BindView(R.id.seek_rl_gcjd)
    AutoRelativeLayout seekRlGcjd;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekprice);
        ButterKnife.bind(this);
        initdate();
    }

    private void initdate() {
        tvTopTitleDrawer.setText("价格查询");
        tvSearchTopDrawer.setVisibility(View.INVISIBLE);
    }

    @OnClick({R.id.seek_rl_cljc, R.id.seek_rl_gcch, R.id.seek_rl_cprz, R.id.seek_rl_gcjd, R.id.back})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.seek_rl_cljc://材料检测
                Intent tocljc = new Intent(SeekPrice.this, SeekCljcActivity.class);
                startActivity(tocljc);
                break;
            case R.id.seek_rl_gcch://工程测绘
                break;
            case R.id.seek_rl_cprz://产品认证
                break;
            case R.id.seek_rl_gcjd://工程鉴定及其他
                break;
            case R.id.back:
                finish();
                break;
        }
    }
}
